package com.spotalog.shared.model;

import javax.validation.constraints.Pattern;
import javax.xml.bind.annotation.XmlRootElement;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@XmlRootElement
public class Address {
	private String address;
	private String city;
	private String state;
	private String country;
	@Pattern(regexp = "\\d{5}(-\\d{4})?")
	private String zipcode;

	public static final String ADDRESS = "address";
	public static final String CITY = "city";
	public static final String STATE = "state";
	public static final String COUNTRY = "country";
	public static final String ZIPCODE = "zipcode";
}
